package com.cloudbroker.bcs.platform.dav.bizapi.constants.type;

public enum ClientMsgNotifyType {
    
    SMS(1, "短信"),
    
    EMAIL(2, "电子邮件"),
    
    SITE_MSG(3, "站内信"),
    
    PHONE(4, "电话"),
    
    ;
    
    private final int val;
    
    private final String description;
    
    private String toString;
    
    private ClientMsgNotifyType(int val, String description) {
        this.val = val;
        this.description = description;
    }
    
    public int getVal() {
        return val;
    }
    
    public String getDescription() {
        return description;
    }
    
    @Override
    public String toString() {
        if (null == toString) {
            toString = new StringBuilder().append("ClientMsgNotifyType[").append(val).append(':')
                    .append(description).append(']').toString();
        }
        return toString;
    }
    
}
